package com.wgts.wgts.localbean;

import android.os.Parcel;
import android.os.Parcelable;

public class LocalMoreProductInfo implements Parcelable{

    public int productId;

    public String productName;

    public String shareCount;

    public String status;

    public String productStandard;

    public long restTime;

    public String sharePath;

    public String drawNumber;

    public String productPrice;

    public int relation;

    public String productSmallImage;

    public String shareId;

    public String productSubtitle;

    public LocalMoreProductInfo(){}

    protected LocalMoreProductInfo(Parcel in) {
        productId = in.readInt();
        productName = in.readString();
        shareCount = in.readString();
        status = in.readString();
        productStandard = in.readString();
        restTime = in.readLong();
        sharePath = in.readString();
        drawNumber = in.readString();
        productPrice = in.readString();
        relation = in.readInt();
        productSmallImage = in.readString();
    }

    public static final Creator<LocalMoreProductInfo> CREATOR = new Creator<LocalMoreProductInfo>() {
        @Override
        public LocalMoreProductInfo createFromParcel(Parcel in) {
            return new LocalMoreProductInfo(in);
        }

        @Override
        public LocalMoreProductInfo[] newArray(int size) {
            return new LocalMoreProductInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(productId);
        dest.writeString(productName);
        dest.writeString(shareCount);
        dest.writeString(status);
        dest.writeString(productStandard);
        dest.writeLong(restTime);
        dest.writeString(sharePath);
        dest.writeString(drawNumber);
        dest.writeString(productPrice);
        dest.writeInt(relation);
        dest.writeString(productSmallImage);
    }
}
